<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    /*
    continue终止本次循环 不影响后续循环执行
    break终止整个循环 后续循环也不再执行
    */
    for(var i=0;i<10;i++){
        if (i==5){
            continue;
        }
        console.log("当前循环i值为："+i);


    }
    var j=0;
    while(j<10){
        if(j==5){
            break;
        }
        console.log("d当前循环j值为"+j);
        j++;
    }
</script>
</html>